<?php

namespace app\index\service;

use app\common\model\Trade;

/**
 * 订单接口
 * Class TradableInterface
 * @package app\trade\service
 */
interface TradableInterface
{
    /**
     * 付款成功，处理订单
     * @param Trade $trade
     * @return mixed
     */
    public function completionTrade(Trade $trade);

    /**
     * 取消付款&取消订单 成功，处理订单
     * @param Trade $trade
     * @return mixed
     */
    public function canceledTrade(Trade $trade);

    /**
     * 退款成功，处理订单
     * @param Trade $trade
     * @return mixed
     */
    public function completionRefundTrade(Trade $trade);

}